/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-23 14:52:03
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-08-23 14:52:19
 * @FilePath: \ruoyi-ui\src\api\wechat\wxUserTags.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function getList(query) {
    return request({
        url: '/wechat/wxUserTags/list/' + query,
        method: 'get'
    })
}

export function addTag(obj) {
    return request({
        url: '/wechat/wxUserTags',
        method: 'post',
        data: obj
    })
}

export function updateTag(obj) {
    return request({
        url: '/wechat/wxUserTags',
        method: 'put',
        data: obj
    })
}

export function delTag(id, appid) {
    console.log(id)
    console.log(appid)
    return request({
        url: '/wechat/wxUserTags?appId=' + appid + "&id=" + id,
        method: 'delete',
        data: {
            appid: appid,
            id: id
        }
    })
}